package com.eastmoney.emis.edda.domain.service.eddi.impl;

import com.eastmoney.emis.edda.domain.service.eddi.EddaDebitInstructionService;
import com.eastmoney.emis.edda.domain.service.eddi.EddiInstructionCommand;
import com.eastmoney.emis.edda.domain.service.eddi.EddiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @description: Description
 * @projectName: EDDA-HSBC
 * @package: com.eastmoney.emis.edda.domain.service.eddi.impl
 * @author: 汪程程
 * @date: 2022/10/11 10:09 AM
 * @version: 1.0
 */
@Service
public class EddiServiceImpl implements EddiService {

    @Autowired
    private EddaDebitInstructionService eddaDebitInstructionService;


    @Override
    public void debitInstruction(EddiInstructionCommand command) {
        eddaDebitInstructionService.debitInstruction(command);
    }

    @Override
    public void debitInstructionAsync(EddiInstructionCommand command) {
        eddaDebitInstructionService.debitInstructionAsync(command);
    }

    @Override
    public void debitInstructionOffline(EddiInstructionCommand command) {
        eddaDebitInstructionService.debitInstructionOffline(command);
    }
}
